<?php
/**
 * @link http://www.tintsoft.com/
 * @copyright Copyright (c) 2013 TintSoft LLC
 * @license http://www.tintsoft.com/license/
 */
namespace Leaps\Config;
use Leaps\Base\ServiceProvider;
class ConfigServiceProvider extends ServiceProvider{
    /**
     * 注册服务提供者
     *
     * @return void
     */
    public function register()
    {
        $this->app['config'] = $this->app->share(function($app) {
            return new Repository(new FileLoader ( $app['files'], $app->getBasePath() . '/config' ));
        });
    }
}